<template>
  <div>
    <h2> user C</h2>
  </div>
</template>
<script>
export default {
  data(){
    return {
      title:'hello C'
    }
  },
  beforeRouteEnter(to,from,next){
    console.log('beforeRouteEnter','c');
    next((vm)=>{
      console.log(vm.title);
    })
  },
  beforeRouteUpdate(to,from,next){
    console.log('beforeRouteUpdate','c');
    next()

  },
  beforeRouteLeave(to,from,next){
    console.log('beforeRouteLeave','c');
    next()

  },
}
</script>